function [] = print5(fileID,input,dim1,dim2,dim3,dim4,dim5)

    for i=1:dim1
        for j=1:dim2
            for k=1:dim3
                for m=1:dim4
                    for n=1:dim5
                        fprintf(fileID, '%e ',input(i, j, k, m, n));
                    end
                end
            end
        end
    end
    fclose(fileID);

end

